#!/bin/bash


echo "Test Case 1: Testing 40/40..."

tc=`java -jar Grades_v2.jar 40 40`

if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
else 
echo "Test Failed"
fi

echo "Test Case 1: Testing 12/100..."

tc=`java -jar Grades_v2.jar 12 100`

if [ "$tc" = "Component Fail" ]
  then
  echo "Component Fail"
else 
echo "Test Passed"
fi

echo "Test Case 1: Testing 100/20..."

tc=`java -jar Grades_v2.jar 100 20`

if [ "$tc" = "Component Fail" ]
  then
  echo "Component Fail"
else 
echo "Test Passed"
fi

echo "Test Case 1: Testing 60/80..."

tc=`java -jar Grades_v2.jar 60 80`

if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
else 
echo "Test Failed"
fi

echo "Test Case 1: Testing 99/99..."

tc=`java -jar Grades_v2.jar 99 99`

if [ "$tc" = "Pass with distinction" ]
  then
  echo "Pass with distinction"
else 
echo "Test Failed"
fi

echo "Test Case 1: Testing -99/-99..."

tc=`java -jar Grades_v2.jar -99 -99`

if [ "$tc" = "Invalid Input" ]
  then
  echo "Invalid Input"
else 
echo "Test Failed"
fi
